﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace backend.Models
{
    public class UserModel
    {
        [Required(ErrorMessage = "请填写用户名")]
        public string user_name { get; set; }

        [Required(ErrorMessage = "请填写名称")]
        public string name { get; set; }

        public string pwd { get; set; }

        [Required(ErrorMessage = "请选择角色")]
        public string role { get; set; }
    }
}
